<MduiCheckbox Switch @bind-Value="@searchable" Label="开启搜索" />
<MduiCheckbox Switch @bind-Value="@read_only" Label="只读" />
<MduiCheckbox Switch @bind-Value="@disabled" Label="禁用" />
<MduiCheckbox Switch @bind-Value="@dense" Label="紧凑型" />

<MduiPicker @bind-Value="@value" Searchable="@searchable" Readonly="@read_only" Disabled="@disabled" Dense="@dense"
    TValue="@string" TItem="@object" MaxHeight="200px">
    <MduiPickerItem DisplayString="" TValue="@string" Value="@null">请选择</MduiPickerItem>
    <MduiSubheader>options1~3</MduiSubheader>
    <MduiPickerItem DisplayString="option1" Value="@("option1")" />
    <MduiPickerItem DisplayString="option2" Value="@("option2")" />
    <MduiPickerItem DisplayString="option3" Value="@("option3")" />
    <MduiSubheader>options4~6</MduiSubheader>
    <MduiPickerItem DisplayString="option4" Value="@("option4")" />
    <MduiPickerItem DisplayString="option5" Value="@("option5")" />
    <MduiPickerItem DisplayString="option6" Value="@("option6")" />
</MduiPicker>

@code {
    string? value;
    bool searchable;
    bool read_only;
    bool disabled;
    bool dense;
}